#pragma once 

#include <iostream>
#include <unistd.h>
#include <fcntl.h>
#include <cstring>
#include <cerrno>

using namespace std;
void SetNoBlock(int fd)
{
    int fl = fcntl(fd, F_GETFL);
    if(fl < 0)
    {
        std::cerr << "fcntl: " << strerror(errno) << std::endl;
    }
    fcntl(fd, F_SETFL, fl | O_NONBLOCK);
}
void printLog()
{
    cout << "this is a log " << endl;
}
void downLoad()
{
    cout << "this is a downLoad " << endl;
}
void executeSql()
{
    cout << "this is a executeSql " << endl;
}